//
//  SpreadOrderListCell.m
//  EnvironmentalProtection
//
//  Created by HCreater on 2018/12/24.
//  Copyright © 2018年 HCreater. All rights reserved.
//

#import "SpreadOrderListCell.h"

@interface SpreadOrderListCell ()

/// viewModle
@property (nonatomic, readwrite, strong) SpreadOrderListCellModel *viewModel;

/// IBOutlet
@property (weak, nonatomic) IBOutlet UILabel* orderNumLabel;
@property (weak, nonatomic) IBOutlet UILabel* nameLabel;
@property (weak, nonatomic) IBOutlet UILabel* orderTimeLabel;
@property (weak, nonatomic) IBOutlet UILabel* payTypeLabel;

@end

@implementation SpreadOrderListCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

#pragma mark - bind data
- (void)bindViewModel:(SpreadOrderListCellModel *)viewModel
{
    self.viewModel = viewModel;
    
    @weakify(self);
    self.orderNumLabel.text = viewModel.orderNum;
    self.nameLabel.text = viewModel.name;
    self.orderTimeLabel.text = viewModel.orderTime;
    self.payTypeLabel.text = viewModel.payTypeName;
}

@end
